package com.ms.oschina.view;

import com.ms.oschina.R;
import com.ms.oschina.util.UiUtils;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

public class ExpressionGridView extends GridView {

	private int numColumns = 7;
	private int verticalSpacing = UiUtils
			.getDimensionPixelSize(R.dimen.space_5);
	private int horizontalSpacing = UiUtils
			.getDimensionPixelSize(R.dimen.space_5);

	public ExpressionGridView(Context context, AttributeSet attrs) {
		super(context, attrs);
		init();
	}

	private void init() {
		setNumColumns(numColumns);
		setVerticalSpacing(verticalSpacing );
		setHorizontalSpacing(horizontalSpacing);
		
	}

	public ExpressionGridView(Context context) {
		this(context, null);
	}

}
